<template>
  <h2>路由案例</h2>
  <RouterView name="b" />
  <p>
    <router-link to="/hot">热映</router-link> |
    <router-link to="/cinema">影院</router-link> |
    <router-link to="/wait">待映</router-link> |
    <router-link to="/classic">经典电影</router-link> |
    <router-link to="/detail/234">详情页</router-link> |
    <router-link to="/detail/567">详情页2</router-link>
  </p>

  <RouterView />

  <RouterView name="a" />
</template>

<style>
.router-link-active {
  color: red;
}
</style>
